import { axios, get, post, patch, Delete } from './request'

export const ajax = {
    // 发送手机验证码
    sendcaptcha: params => post('/reactApp/sendcaptcha', params),
    // 校验验证码
    verifycaptcha: params => post('/reactApp/verifycaptcha', params),

    // 注册
    register: params => post('/reactApp/register', params),
    // 密码登录
    login: params => post('/reactApp/login', params),
    // 获取个人信息
    getuserInfo: (params) => post('/reactApp/getuserInfo', params),
    // 修改密码
    updatepass: params => post('/reactApp/updatepass', params),
    // 上传文件
    uploadfile: params => post('/reactApp/uploadfile', params),
    // 修改头像
    changeinfo: params => post('/reactApp/changeinfo', params),
    // 忘记密码
    forgetpass: params => post('/reactApp/forgetpass', params),

    // 获取管理员列表
    getuserlist: params => get('/reactApp/getuserlist', params),
    // 删除管理员
    deluser: params => post('/reactApp/deluser', params),
    // 修改管理员信息
    updateinfo: params => post('/reactApp/updateinfo', params),

    // 上班打卡
    enterjob: params => post('/reactApp/enterjob', params),
    // 下班打卡
    leavejob: params => post('/reactApp/leavejob', params),
    // 获取考勤列表
    gettimelist: params => post('/reactApp/gettimelist', params),

    // 添加便签
    addnote: params => post('/reactApp/addnote', params),
    // 修改便签
    setnode: params => post('/reactApp/setnode', params),
    // 删除便签
    delnode: params => post('/reactApp/delnode', params),
    // 获取便签列表
    getcartlist: params => post('/reactApp/getcartlist', params),

    // 添加意见
    opinionadd: params => post('/reactApp/opinionadd', params),
    // 修改意见
    opinionupdate: params => post('/reactApp/opinionupdate', params),
    // 删除意见
    opiniondel: params => post('/reactApp/opiniondel', params),
    // 获取意见列表
    opinionlist: params => post('/reactApp/opinionlist', params),

    // 添加回评
    backopinionadd: params => post('/reactApp/backopinionadd', params),
    // 修改回评
    backopinionupdate: params => post('/reactApp/backopinionupdate', params),
    // 删除回评
    backopiniondel: params => post('/reactApp/backopiniondel', params),
    // 获取回评列表
    backopinionlist: params => post('/reactApp/backopinionlist', params),


    // test: (params) => get("react/test", params),
    // 会员添加
    vipregister: body => post("reactApp/vipregister", body),
    // 会员列表
    viplist: body => post("reactApp/viplist", body),
    // 会员列表修改
    vipchangeinfo: body => post("reactApp/vipchangeinfo", body),
    // 会员列表删除
    vipdeleteuser: body => post("reactApp/vipdeleteuser", body),

    // 公告添加
    annoadd: body => post("reactApp/annoadd", body),
    // 公告列表
    getannolist: body => post("reactApp/getannolist", body),
    // 公告删除
    deleteanno: body => post("reactApp/deleteanno", body),
    // 获取一条
    getannoitem: body => post("reactApp/getannoitem", body),
    // 公告修改
    setannoitem: body => post("reactApp/setannoitem", body),

    // 轮播添加
    banner: body => post("reactApp/banner", body),
    // 轮播修改 
    itembanner: body => post("reactApp/itembanner", body),
    // 轮播删除 deletebanner
    deletebanner: body => post("reactApp/deletebanner", body),
    // 轮播查询
    bannerlist: body => post("reactApp/bannerlist", body),
    getannobanner: body => post("reactApp/getannobanner", body),



    // 订单列表
    formlist: body => post("reactApp/formlist", body),
    getformlist: body => post("reactApp/getformlist", body),
    // 添加订单
    addlist: body => post("reactApp/addlist", body),
    // 删除订单
    delform: body => post("reactApp/delform", body),
    // 修改订单
    changeform: body => post("reactApp/changeform", body),


    // 产品列表
    producelist: body => post("reactApp/producelist", body),
    // 产品添加
    addproduce: body => post("reactApp/addproduce", body),
    // 修改产品
    changeproduce: body => post("reactApp/changeproduce", body),
    // 删除产品
    delproduce: body => post("reactApp/delproduce", body),

    // 活动列表
    activelist: body => post("reactApp/activelist", body),
    // 添加活动
    addactive: body => post("reactApp/addactive", body),
    // 删除活动
    delactive: body => post("reactApp/delactive", body),
    // 修改活动
    changeactive: body => post("reactApp/changeactive", body),
}